package com.sugar.web.init;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.sugar.service.system.InitSystemTreeMenuService;
import com.sugar.web.struts.BaseActionSupport;

@Controller
@Scope("prototype")
public class InitSystemTreeMenuAction extends BaseActionSupport{

	private static final long serialVersionUID = 1L;
	
	@Resource
	private InitSystemTreeMenuService tree ;
	
	/**
	 * 初始化所以的系统权限资源
	 */
	public String execute() throws Exception {
		
		tree.initMenu(getRequest()) ;
		
		return SUCCESS ;
	}

}
